import 'package:ati_package/core/utils/ati_font.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class AtiNoDataWidget extends StatelessWidget {
  final String? tipText;
  const AtiNoDataWidget({super.key, this.tipText = '暂无数据'});

  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      margin: EdgeInsets.symmetric(horizontal: 16.r, vertical: 30.r),
      child: Column(
        children: [
          Image.asset(
            width: 64.r,
            height: 64.r,
            'assets/images/find/news_list_m.png',
            package: 'ati_package',
          ),

          SizedBox(height: 20.r),
          Text(
            tipText!,
            style: TextStyle(
              color: Color(0xFF666666),
              fontSize: AtiFont.font14,
            ),
          ),
        ],
      ),
    );
  }
}
